//
//  TGLibECG.h
//  TGAccessory
//
//  Created by FEI DENG on 6/30/14.
//  Copyright (c) 2014 NeuroSky. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TGLibECGDelegate.h"

@interface TGLibECG : NSObject {
    id<TGLibECGDelegate> delegate;
}

@property (retain) id<TGLibECGDelegate> delegate;

- (id)init;
- (void)resetECGAnalysis;

- (void)requestECGAnalysis:(int) rawValue withPoorSignal:(int) poorSignal;
- (void)setHRVOutputInterval:(int) outputInterval;
- (void)setMoodOutputPoint:(int) outputPoint;

- (int)getTotalRRintNum;
- (int)getSignalQuality;
- (double)getOverallSignalQuality;
- (void)setSignalQualityThreshold:(int)threshold;
- (int)computeHeartRateNow;

- (void)setHeartAgeParameters:(NSString*)userName withAge:(int)userAge withPath:(NSString*)path;
- (void)setHeartAgeOutputPoint:(int)outputPoint;
- (void)setHeartAgeRecordNumber:(int)recordNumber;

- (void)setStressParameters:(NSString*)userName withGender:(bool)userGender withAge:(int)userAge withHeight:(int)userHeight
                 withWeight:(int)userWeight withPath:(NSString*)path;
- (void)setStressOutputInterval:(int)outputInterval;

- (NSString *)getVersion;
- (NSString *)getAlgoVersion;

- (void)enableNSLogMessages:(bool) enable;
@end
